package test;

import java.util.Scanner;

public class test3 {
    //十进制转二进制
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();

        //write your code here......
        fun(num);
    }
    public static void fun(int tar) {
        int temb = tar / 2;
        int temp = tar % 2;
        if(temb >= 1){
            fun(temb);
        }
        System.out.print(temp);
    }

}
